package cn.ds.fly.modules.sys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by lds on 2017/12/14.
 */
@Controller
public class HtmlController {
    @RequestMapping("modules/{module}/{url}.html")
    public String module(@PathVariable("module") String module, @PathVariable("url") String url){
        return "modules/" + module + "/" + url;
    }

    @RequestMapping("{url}.html")
    public String url(@PathVariable("url") String url){
        return url;
    }

    @RequestMapping("/")
    public String index(){
        return "index";
    }
}
